package com.adjaisd.scarecrow.dto;

import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;


/**
 * influxdb的指标对象
 */
@Data
@Measurement(name = "quota")
public class QuotaInfo {

    @Column(name = "deviceId",tag = true)
    private String deviceId;    //设备id

    @Column(name = "quotaId",tag = true)
    private String quotaId;     //指标id

    @Column(name = "name",tag = true)
    private String name;        //指标名称

    @Column(name = "alarm" ,tag = true)
    private String alarm;       //是否报警  0：不报警  1：报警

    @Column(name = "alarmName", tag = true)
    private String alarmName;   //报警名称

    @Column(name = "alarmLevel" ,tag = true)
    private String alarmLevel;  //报警级别

    @Column(name = "unit",tag = true)
    private String unit;        //单位

    @Column(name = "reference",tag = true)
    private String reference;   //参考值

    @Column(name = "value")
    private Double value;       //数值指标

    @Column(name = "stringValue")
    private String stringValue;//非数值指标

}
